package com.adcc.loadsheet.billing.entity.chargerule;

import com.adcc.loadsheet.billing.entity.BasisEntity;
import com.adcc.loadsheet.billing.vo.chargerule.BillingRuleEntityVO;

import java.util.Date;

/**
 * 计费规则表实体类
 * Created by zhaoml on 2020/4/7.
 */
public class BillingRuleEntity extends BasisEntity<BillingRuleEntityVO> {
    private Integer billingRuleId;   //主键ID
    private String ruleAbbrev;  //规则简称
    private String ruleFullname; //规则全称
    private int ruleRate;   //重发率
    private String remark;   //备注
    private Date createAt;  //创建时间
    private String createUser;   //创建人
    private Date updateAt;   //更新时间
    private String updateUser;  //更新人

    @Override
    public BillingRuleEntityVO toVO() {
        BillingRuleEntityVO vo = new BillingRuleEntityVO();
        vo.setBillingRuleId(this.billingRuleId);
        vo.setRuleAbbrev(this.ruleAbbrev);
        vo.setRuleFullname(this.ruleFullname);
        vo.setRuleRate(this.ruleRate);
        vo.setRemark(this.remark);
        vo.setCreateAt(this.createAt);
        vo.setCreateUser(this.createUser);
        vo.setUpdateAt(this.updateAt);
        vo.setUpdateUser(this.updateUser);
        return vo;
    }

    public Integer getBillingRuleId() {
        return billingRuleId;
    }

    public void setBillingRuleId(Integer billingRuleId) {
        this.billingRuleId = billingRuleId;
    }

    public String getRuleAbbrev() {
        return ruleAbbrev;
    }

    public void setRuleAbbrev(String ruleAbbrev) {
        this.ruleAbbrev = ruleAbbrev;
    }

    public String getRuleFullname() {
        return ruleFullname;
    }

    public void setRuleFullname(String ruleFullname) {
        this.ruleFullname = ruleFullname;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public int getRuleRate() {
        return ruleRate;
    }

    public void setRuleRate(int ruleRate) {
        this.ruleRate = ruleRate;
    }
}